﻿#region Using namespaces

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BOL.Apps.GeneNetworkBrowser;

#endregion

namespace BOL.Apps.GeneNetworkBrowser.ViewModels
{
    public sealed class DataTreeViewItemViewModel : TreeViewItemViewModel
    {
        #region TreeViewItemViewModel implementation

        private NCR _ncr;

        public NCR NCR { get { return _ncr; } set { _ncr = value; } }

        public DataTreeViewItemViewModel(NCR ncr, ProjectViewModel vmProject)
            : base(vmProject, true)
        {
            _ncr = ncr;
        }

        protected override void LoadChildren()
        {
            base.Children.Add(new ExpressionViewModel(_ncr.ExpressionData, this));
            base.Children.Add(new SurvivalViewModel(_ncr.SurvivalData, this));
            base.Children.Add(new CovariatesViewModel(_ncr.CovariatesData, this));
        }

        #endregion
    }
}
